#include <iostream>
#include <chrono>
#include <string>
#include <ctime>

using namespace std;
using namespace chrono;

typedef duration<int, ratio<24 * 60 * 60>> day_t;

int main()
{
    system_clock::time_point now = system_clock::now();

    time_t now_tm = system_clock::to_time_t(now);

    string now_time = ctime(&now_tm);

    cout <<"now : "<<now_time << endl;

    day_t oneday(1);

    auto tomorrow = now + oneday;
    auto tom_tm = system_clock::to_time_t(tomorrow);
    string tom_time = ctime(&tom_tm);

    cout << "tomorrow : " << tom_time << endl;

    // extra
    auto time = now.time_since_epoch();
    auto t_chaned = duration_cast<duration<double> >(time);
    cout << t_chaned.count();


    return 0;
}